function test() {
    const arr = [{ 'a': 1 }, { 'b': 2 }]
    const new_arr = []
    arr.forEach(item => {
        new_arr.push(item)
        item.child = 3
    })
    return new_arr

}

console.log(test())